﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface IPublisherRepository
    {
        void CreatePublisher(Publisher item);
        void UpdatePublisher(Publisher item);
        void DeletePublisher(int id);

        IEnumerable<Publisher> ListPublishers(bool cacheEnabled = true);
        Publisher GetPublisherById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
